package com.chengzhi;

import io.xjar.XCryptos;

/**
 * @description
 * @author: ruanchengzhi
 * @create: 2021-01-11 13:43
 **/
public class EncryptionTest {
    public static void main(String[] args) throws Exception {
        XCryptos.encryption()
                // 项目生成的jar
                .from("/Users/Desktop/xjar/mine-user-group-web-1.0-RELEASE.jar")
                // 加密的密码
                .use("test!")
                // 要加密的资源
                .include("/**.class")
                .include("/**/*.xml")
                .include("/**.yml")
                // 加密后的jar，此时：通过jd-gui反编译失败
                .to("/Users/Desktop/xjar/mine-user-group-web-RELEASE.jar");
    }
}
